﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ZoomEngine.Animation
{
    public class Timer : Clock
    {
        public Timer(ClockManager manager) :
            base(manager)
        {
        }

        public Timer(ClockManager manager, double duration, bool autoStart, Action complete)
            : base(manager)
        {
            Duration = duration;
            Complete += (s, e) => { complete(); };
            if (autoStart)
                Start();
        }
    }
}
